import Vue from 'vue'
import Router from 'vue-router'
//首页 头 脚
import Home from '@/components/home/Home'
import Header from '@/components/header/Header'
import Footer from '@/components/footer/Footer'
//登录注册
import Login from '@/components/login/Login'
import Register from '@/components/register/Register'
import UserCenter from '@/components/userCenter/UserCenter'

//课程
import Subject from '@/components/course/Subject'
import CourseList from '@/components/course/CourseList'
import CourseDetails from '@/components/course/CourseDetails'

//导航
import Navigation from '@/components/nav/Navigation'
import HowUse from '@/components/nav/howUse/HowUse'
import Vip from '@/components/nav/vip/Vip'
import Teacher from '@/components/nav/teacher/Teacher'
import Suggestion from '@/components/nav/suggestion/Suggestion'
import Joke from '@/components/nav/joke/Joke'
import Interview from '@/components/nav/interview/Interview'
import Icu from '@/components/nav/icu/Icu'
import Love from '@/components/nav/love/Love'
import Offer from '@/components/nav/offer/Offer'
import Wait from '@/components/nav/wait/Wait'

Vue.use(Router)

export default new Router({
  //TODO 正式服务将 history注释 取消掉
  mode: "history",
  routes: [
    {path: '/', name: 'Home', component: Home},
    {path: '/header', name: 'Header', component: Header},
    {path: '/footer', name: 'Footer', component: Footer},

    {path: '/login', name: 'Login', component: Login},
    {path: '/register', name: 'Register', component: Register},
    {path: '/userCenter', name: 'UserCenter', component: UserCenter},

    {path: '/subject', name: 'Subject', component: Subject},
    {path: '/courseList', name: 'CourseList', component: CourseList},
    {path: '/courseDetails', name: 'CourseDetails', component: CourseDetails},

    {path: '/navigation', name: 'Navigation', component: Navigation},
    {path: '/howUse', name: 'HowUse', component: HowUse},
    {path: '/vip', name: 'Vip', component: Vip},
    {path: '/teacher', name: 'Teacher', component: Teacher},
    {path: '/suggestion', name: 'Suggestion', component: Suggestion},
    {path: '/joke', name: 'Joke', component: Joke},
    {path: '/interview', name: 'Interview', component: Interview},
    {path: '/icu', name: 'Icu', component: Icu},
    {path: '/love', name: 'Love', component: Love},
    {path: '/offer', name: 'Offer', component: Offer},
    {path: '/wait', name: 'Wait', component: Wait}
  ]
})
